//
//  DetailViewController.m
//  08- HomeWork
//
//  Created by 李昊林 on 16/7/25.
//  Copyright © 2016年 李昊林. All rights reserved.
//

#import "DetailViewController.h"

@interface DetailViewController ()
@property (nonatomic, strong)UILabel *detailLabel;
@end

@implementation DetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"详情页面";
    self.detailLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 50, self.view.frame.size.width, 500)];
    NSString *message = [_dictionary objectForKey:@"message"];
    NSNumber *age = [_dictionary objectForKey:@"age"];
    NSString *gender = [_dictionary objectForKey:@"gender"];
    NSString *phoneNumber = [_dictionary objectForKey:@"phoneNumber"];
    _detailLabel.text = [NSString stringWithFormat:@"姓名：%@  年龄:%@  性别：%@  电话号码：%@  ",message, age, gender, phoneNumber];
    _detailLabel.numberOfLines = 0;
    _detailLabel.textColor = [UIColor blackColor];
    [self.view addSubview:self.detailLabel];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
